package com.nix.web.service.user;

import com.nix.web.databases.pojo.user.Info;
import com.nix.web.databases.service.user.InfoService;
import org.junit.Test;
import org.springframework.stereotype.Service;

/**
 * Create by zhangpe0312@qq.com on 2017/12/29.
 */
@Service
public class UserInfoServiceImpl extends InfoService{

    @Test
    public void testAdd(){
        Info info = new Info();
        info.setEmail("fasfsakfjkasjf");
        try {
            add(info);
            System.out.println(info.getId());
        } catch (Exception e) {
            System.out.println("添加邮箱失败!" + e);
        }
    }
}
